/**
 * BloodPressure
 * This class represents a patient's recorded blood pressure
 * Subclass of Vitals
 */
package docoffice.doss;
import java.util.logging.Logger;

/**
 * @author George Chi
 * @version  $Revision: 1.8 $
 */
public class BloodPressure extends Vitals {
	
	/**
	 * Field diastolic.
	 * Field systolic.
	 */
	public int diastolic, systolic;
	
	/**
	 * Field LOG.
	 */
	private static final Logger LOG = Logger.getLogger("BloodPressure");

	/**
	 * Constructor for BloodPressure.
	 * @param patientPulse int
	 * @param patientDiastolic int
	 * @param patientSystolic int
	 */
	public BloodPressure(int patientPulse, int patientSystolic, int patientDiastolic) {
		super(patientPulse);
		this.diastolic = patientDiastolic;
		this.systolic = patientSystolic;
		LOG.info("New blood pressure instance created");
	}

	/**
	 * Method getDiastolic.
	 * @return int
	 */
	public int getDiastolic(){
		return this.diastolic;
	}
	
	/**
	 * Method getSystolic.
	 * @return int
	 */
	public int getSystolic(){
		return this.systolic;
	}
	
	/**
	 * Method setDiastolic.
	 * @param newDiastolic int
	 */
	public void setDiastolic(int newDiastolic){
		this.diastolic = newDiastolic;
	}
	
	/**
	 * Method setSystolic.
	 * @param newSystolic int
	 */
	public void setSystolic(int newSystolic){
		this.systolic = newSystolic;
	}
	
	/**
	 * Method toString.
	 * @return String
	 */
	public String toString(){
		return systolic + "/" + diastolic;
	}
}
